<!--<?php
print <<<EOT
-->

<td valign="top">
<table width="100%"  border="0" cellspacing="10" cellpadding="0">
<tr>
<td align="left" valign="top">
    
<form method="post" id="proForm" name="proForm"> 
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="25" valign="top" class="ytitle">Shopping Cart</td>
  </tr>
  <tr>
    <td height="20" align="left" valign="top" >Review the item(s) in your cart and click "Proceed to Checkout".</tr>
  <tr>
    <td height="25" align="left" valign="top" >
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr align="left">
          <td width="150" height="50" >Choose delivery country :</td>
          <td>
            <select name="set_country" onchange="document.proForm.submit();">
              

<!--
EOT;
foreach ($COUNTRY_ARY as $k=>$v) {
    $selected = '';
    if ($k == $set_country) {
        $selected = 'selected';
    }
print <<<EOT
-->          
        
              <option  value="{$k}" {$selected}>- {$v} -</option>
        
<!--
EOT;
}
print <<<EOT
-->  

            </select></td>
        </tr>
      </table>
  </tr>
</table>

<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="21" align="left" bgcolor="#b5c3d6" class="whitefont"><img src="images/transparent.gif" width="4" height="10" align="absmiddle">Shopping Cart Items</td>
  </tr>
  <tr>
    <td height="88" align="left" valign="top" >
      <table width="100%"  border="0" cellspacing="0" cellpadding="3">
        <tr>
          <td bgcolor="#e0e7ee" width="9%">Type</td>
          <td bgcolor="#e0e7ee" width="40%">Item</td>
          <td bgcolor="#e0e7ee" width="8%">Price(DKK)</td>
          <td bgcolor="#e0e7ee" width="5%">Quantity</td>
          <td bgcolor="#e0e7ee" width="8%">Total(DKK)</td>
          <td bgcolor="#e0e7ee" width="4%">&nbsp;</td>
        </tr>
        
<!--
EOT;
foreach ($info_ary as $k=>$v) {
    $price_show = $v['old_price'];
print <<<EOT
-->          
        
        <tr>
          <td >{$v['type']} </td>
          <td >{$v['name']} <br />{$shortdesc}</td>
          <td >{$price_show} </td>
          <td ><input name="update_qty_ary[$k]" type="text" style="width:30px" value="{$v['count']}"></td>
          <td >{$v['cost']} </td>
          <td align="center"><a href="shopping_cart.php?act=removeone&pid=$k"><img src="images/shopping_cart/bt_remove.gif" alt="Remove" width="52" height="19" border="0"></a></td>
        </tr>
        
<!--
EOT;
}
print <<<EOT
-->           
        
        <tr>
          <td >&nbsp;</td>
          <td >&nbsp;</td>
          <td >&nbsp;</td>
          <td >&nbsp;</td>
          <td >&nbsp;</td>
          <td align="center">
            <input type="hidden" name="act" value="cart_update">
            <input type="image" src="images/shopping_cart/bt_update.gif" alt="Update">          </td>
        </tr>
        
        <tr>
          <td colspan="6" ><hr size="1" noshade color="#ececec"></td>
        </tr>
        
        <tr>
          <td >&nbsp;</td>
          <td colspan="5" align="right" ><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="150" height="22" class="title03">Sub Total</td>
                <td width="40" height="22" align="left">DKK&nbsp;&nbsp;</td>
                <td width="50" height="22" align="right" nowrap="nowrap">{$total_cost}</td>
                <td width="30" height="22" align="right" nowrap="nowrap">&nbsp;</td>
              </tr>
      <!--
EOT;
if ($cart_discount>0 && isLogin()) {
print <<<EOT
-->  
            <tr>
                <td height="22" class="title03">Discount</td>
                <td height="22" align="left">DKK</td>
                <td height="22" align="right" nowrap="nowrap">{$cart_discount}</td>
                <td height="22" align="right" nowrap="nowrap">&nbsp;</td>
              </tr>
              <tr>
                <td height="22" class="title03">New Sub Total</td>
                <td height="22" align="left">DKK</td>
                <td height="22" align="right" nowrap="nowrap">{$new_total_cost}</td>
                <td height="22" align="right" nowrap="nowrap">&nbsp;</td>
              </tr>
  <!--
EOT;
}
print <<<EOT
-->  
            <tr>
                <td height="22" class="title03">VAT</td>
                <td height="22" align="left">DKK</td>
                <td height="22" align="right" nowrap="nowrap">{$cart_addvat}</td>
                <td height="22" align="right" nowrap="nowrap">&nbsp;</td>
              </tr>
              <tr>
                <td height="22" class="title03">Shipping Fee</td>
                <td height="22" align="left">DKK</td>
                <td height="22" align="right" nowrap="nowrap">{$cart_addshippingfee}</td>
                <td height="22" align="right" nowrap="nowrap">&nbsp;</td>
              </tr>
              <tr>
                <td height="22" class="title03">Total</td>
                <td height="22" align="left" bgcolor="#E0E7EE">DKK</td>
                <td height="22" align="right" nowrap="nowrap" bgcolor="#E0E7EE">{$total_cost2}</td>
                <td height="22" align="right" nowrap="nowrap" bgcolor="#E0E7EE">&nbsp;</td>
              </tr>
                    </table>
            </td>
          </tr>
        <tr>
          <td colspan=6 height="20">&nbsp;</td>          
        </tr>
      </table>
    </td>
  </tr>
</table>
</form>

<!--
EOT;
if (!$check_out) {
print <<<EOT
--> 

<table width="100%"  border="0" cellspacing="5" cellpadding="0">
  <tr>
    <td width="58%" align="right">&nbsp;</td>
    <td width="24%" align="right"><input name="Submit" type="submit" class="inputbt" onClick="history.back(-1)" value="Continue Shopping"></td>
    <td width="18%" align="left"><input name="Submit" type="submit" class="inputbt" onClick="procee2checkout('{$total_qty}');" value="Proceed to Checkout"></td>
  </tr>
</table>


<!--
EOT;
}
if (isUserLogin() && $check_out) {
print <<<EOT
-->  

<form method="post" action="{$pay_url}" name="form3" onSubmit="return checkForm(form3);">
<input type="hidden" name="act" value="check_out">
<table width="100%"  border="0" cellspacing="2" cellpadding="0">
  <tr>
    <td colspan=2 class="ytitle">Your Personal Information :</td>
  </tr>
  <tr>
    <td width="165" >Company :</td>
    <td>{$user_info_ary['company']}</td>
  </tr>
  <tr>
    <td >First Name* :</td>
    <td>{$user_info_ary['firstname']}</td>
  </tr>
  <tr>
    <td >Last Name* :</td>
    <td>{$user_info_ary['lastname']}</td>
  </tr>
  <tr>
    <td>Address* :</td>
    <td></td>
  </tr>
  <tr>
    <td ></td>
    <td>{$user_info_ary['street']}</td>
  </tr>
  <tr>
    <td ></td>
    <td>{$user_info_ary['city']}</td>
  </tr>
  <tr>
    <td ></td>
    <td>{$user_info_ary['state']}</td>
  </tr>
  <tr>
    <td ></td>
    <td>{$user_info_ary['zip']}</td>
  </tr>
  <tr>
    <td ></td>
    <td>{$user_info_ary['country']}</td>
  </tr>
  <tr>
    <td >Phone* :</td>
    <td>{$phone}</td>
  </tr>
  <tr>
    <td >Mobile :</td>
    <td>{$mobile}</td>
  </tr>
  <tr>
    <td >Email* :</td>
    <td>{$user_info_ary['email']}</td>
  </tr>
  <script language="javascript">
    function hiddiv() {
        document.getElementById('test1').style.display = "none";
        document.getElementById('test2').style.display = "none";
        document.getElementById('test3').style.display = "none";
        document.getElementById('test4').style.display = "none";
        document.getElementById('test5').style.display = "none";
        document.getElementById('test11').style.display = "";
        document.getElementById('test22').style.display = "";
        document.getElementById('test33').style.display = "";
        document.getElementById('test44').style.display = "";
        document.getElementById('test55').style.display = "";
        document.getElementById('test111').style.display = "";
        document.getElementById('test222').style.display = "";
        document.getElementById('test333').style.display = "";
        document.getElementById('test444').style.display = "";
        document.getElementById('test555').style.display = "";
    }
    function showdiv() {
        document.getElementById('test1').style.display = "";
        document.getElementById('test2').style.display = "";
        document.getElementById('test3').style.display = "";
        document.getElementById('test4').style.display = "";
        document.getElementById('test5').style.display = "";
        document.getElementById('test11').style.display = "none";
        document.getElementById('test22').style.display = "none";
        document.getElementById('test33').style.display = "none";
        document.getElementById('test44').style.display = "none";
        document.getElementById('test55').style.display = "none";
        document.getElementById('test111').style.display = "none";
        document.getElementById('test222').style.display = "none";
        document.getElementById('test333').style.display = "none";
        document.getElementById('test444').style.display = "none";
        document.getElementById('test555').style.display = "none";
    }
    </script>
  <tr>
    <td colspan="2" height="10"></td>
  </tr>
  <tr>
    <td valign="top"  class="ytitle">Delivery Address :</td>
    <td>
      <input type="radio" name="userdef" checked="checked" value="0" onClick="showdiv()" class="noBorder">
      Use the following delivery address&nbsp;&nbsp;
      <input type="radio" name="userdef" value="1" onClick="hiddiv()" class="noBorder">
      Use another delivery address 
    </td>
  </tr>
  <tr>
    <td><div id="test11" style="display:none"><span style="width:40px;">&nbsp;&nbsp;</span>House no. / Street :</div></td>
    <td>
      <div id="test1">{$user_info_ary['street2']}</div>
      <div id="test111" style="display:none"><input type="text" name="user_street" style="width:350px"></div>
    </td>
  </tr>
  <tr>
    <td><div id="test22" style="display:none"><span style="width:40px;">&nbsp;&nbsp;</span>City / Town :</div></td>
    <td>
      <div id="test2">{$user_info_ary['city2']}</div>
      <div id="test222" style="display:none"><input type="text" name="user_city" style="width:350px"></div>
    </td>
  </tr>
  <tr>
    <td><div id="test33" style="display:none"><span style="width:40px;">&nbsp;&nbsp;</span>State / Province :</div></td>
    <td>
      <div id="test3">{$user_info_ary['state2']}</div>
      <div id="test333" style="display:none"><input type="text" name="user_state" style="width:350px"></div>
    </td>
  </tr>
  <tr>
    <td><div id="test44" style="display:none"><span style="width:40px;">&nbsp;&nbsp;</span>ZIP / Postal Code :</div></td>
    <td>
      <div id="test4">{$user_info_ary['zip2']}</div>
      <div id="test444" style="display:none"><input type="text" name="user_zip" style="width:350px"></div>
    </td>
  </tr>
  <tr>
    <td><div id="test55" style="display:none"><span style="width:40px;">&nbsp;&nbsp;</span>Country / Region :</div></td>
    <td>
      <div id="test5">{$user_info_ary['country2']}</div>
      <div id="test555" style="display:none"><input type="text" name="user_country" style="width:350px"></div>
    </td>
  </tr>
  
  <tr>
    <td colspan="2" height="10"></td>
  </tr>
  <tr>
    <td class="ytitle">Referred by Promoter No. :</td>
    <td>
      <input type="text" name="promoterno" style="width:195px" value="{$promoter_id}">
      <a href="promoter_list.php" target="_blank"><u>view promoter list</u></a>
    </td>
  </tr>
  
  <tr>
    <td colspan="2" height="10"></td>
  </tr>
  <tr>
    <td class="ytitle" colspan=2 >Payment Method :</td>
  </tr>
  
  <tr>
    <td></td>
    <td>
      <input name="card_type" type="radio" value="V-DK" checked class="noBorder">
        <img src="images/card01.gif" width="31" height="21">&nbsp;&nbsp;Visa<br>
	  <input name="card_type" type="radio" value="MC(DK)"  class="noBorder">
	    <img src="images/card02.gif" width="32" height="21">&nbsp;&nbsp;MasterCard<br>
	  <input name="card_type" type="radio" value="DK"  class="noBorder">
	    <img src="images/card03.gif" width="31" height="21">&nbsp;&nbsp;Dankort or Visa/Dankort
	</td>
  </tr>
  
  <tr>
    <td>Card holder's name* :</td>
    <td><input type="text" name="card_name" style="width:200px"></td>
  </tr>
  <tr>
    <td>Card number* :</td>
    <td><input type="text" name="card_number" style="width:200px" value=""></td>
  </tr>
  <tr>
    <td>Expiry Date* :</td>
    <td>
      <select name="card_emonth">
              

<!--
EOT;
foreach ($EMONTH_ARY as $k=>$v) {
print <<<EOT
-->          
        
        <option  value="{$k}">{$v}</option>
        
<!--
EOT;
}
print <<<EOT
-->  

      </select> / 
      <select name="card_eyear">
              

<!--
EOT;

$cur_year=date("y");
$ifselected="";

foreach ($EYEAR_ARY as $k=>$v) {
	if($k>=$cur_year)
	{
		 if($k==$cur_year) $ifselected=" selected";
		 else $ifselected="";
print <<<EOT
-->          
        
        <option  value="{$k}" {$ifselected}>{$v}</option>
        
<!--
EOT;
	}
}
print <<<EOT
-->  

      </select>

    </td>
  </tr>
  <tr>
    <td>Security Code* :</td>
    <td><input type="text" name="card_cvc" style="width:30px"  maxlength="3"> (The 3-digit Validation Code shown on the back of your card)</td>
  </tr>
  
  <tr>
    <td colspan="2" height="10"></td>
  </tr>
  
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>

<table width="100%"  border="0" cellspacing="2" cellpadding="0">
  <tr>
    <td width="84%" >Yes, I have read and accepted Acuity World WebShop <a href="delivery_policy.php" target="_blank" style="text-decoration:underline">Terms of Sale and Delivery</a> *</td>
    <td width="16%"><input name="faq1" type="checkbox" class="inputimage" value="1" checked="checked"></td>
  </tr>
  <tr>
    <td >Yes, please send me the Acuity World Newsletter</td>
    <td><input name="faq2" type="checkbox" class="inputimage" value="1" {$faq2_checked}>
    </td>
  </tr>
  <tr>
    <td colspan=2 height=20></td>
  </tr>
  <tr>
    <td colspan=2 align=right><input name="cart_delivery" type="submit" class="inputbt" value="Continue"></td>
  </tr>
</table>
</form>

<!--
EOT;
}
print <<<EOT
-->  


</td>
</tr>
</table>
</td>

<!--
EOT;
?>-->